package com.jwds.digital.bios.business.integration.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.jwds.digital.bios.business.core.infrastructure.dto.external.SecurityStatusDTO;
import com.jwds.digital.bios.business.integration.service.ExternalDataProcess;
import com.jwds.tdc.framework.common.exception.BusinessException;
import org.springframework.stereotype.Service;

/**
 * 五防状态信息【拉绳、堵塞、跑偏、撕裂、打滑】
 * @Author lizhiming
 */
@Service
public class L32BC11 implements ExternalDataProcess {

    @Override
    public String getMessageId() {
        return this.getClass().getSimpleName();
    }

    @Override
    public void addProcess(Object dataObj) throws BusinessException {
        SecurityStatusDTO securityStatusDTO = BeanUtil.toBean(dataObj, SecurityStatusDTO.class);
        //todo 入库
    }

    @Override
    public void updateProcess(Object dataObj) throws BusinessException {
        SecurityStatusDTO securityStatusDTO = BeanUtil.toBean(dataObj, SecurityStatusDTO.class);
        //todo 更新
    }

    @Override
    public void deleteProcess(Object dataObj) throws BusinessException {
        //此接口无法接受删除业务
    }
}
